<template>
  <div class="container">
    <div class="center">
      <div class="titi">
        <h4>精选物流线路</h4>
        <router-link to="/logistics">更多&nbsp;></router-link>
      </div>
      <ul>
        <li>
          <div class="top">
            <div class="yuan">
              <span>台湾</span>
              <span></span>
              <span>1-20kg</span>
            </div>
          </div>

          <div>
            &nbsp;
            <h3>KoKo专线</h3>
            <p>KoKo优选服务商提供的路线</p>
          </div>
          <div class="gongzuo">
            <div class="txt">
              <span>3-7日</span>
              <span>时效工作日</span>
            </div>
            <div class="txt">
              <span>￥64</span>
              <span>续重0.5kg</span>
            </div>
            <div class="txt">
              <span>￥250</span>
              <span>首重1kg</span>
            </div>
          </div>
          <div class="jiantou"></div>
        </li>

        <li>
          <div class="top">
            <div class="yuan">
              <span>香港</span>
              <span></span>
              <span>1-20kg</span>
            </div>
          </div>

          <div>
            <h3>KoKo专线</h3>
            <p>KoKo优选服务商提供的路线</p>
          </div>
          <div class="gongzuo">
            <div class="txt">
              <span>3-7日</span>
              <span>时效工作日</span>
            </div>
            <div class="txt">
              <span>￥64</span>
              <span>续重0.5kg</span>
            </div>
            <div class="txt">
              <span>￥250</span>
              <span>首重1kg</span>
            </div>
          </div>
          <div class="jiantou"></div>
        </li>

        <li>
          <div class="top">
            <div class="yuan">
              <span>日本</span>
              <span></span>
              <span>1-20kg</span>
            </div>
          </div>
          <div>
            <h3>上海E邮宝（Epacket）</h3>
            <p>时效、服务优于上海邮政挂号小包</p>
          </div>
          <div class="gongzuo">
            <div class="txt">
              <span>3-7日</span>
              <span>时效工作日</span>
            </div>
            <div class="txt">
              <span>￥64</span>
              <span>续重0.5kg</span>
            </div>
            <div class="txt">
              <span>￥250</span>
              <span>首重1kg</span>
            </div>
          </div>
          <div class="jiantou"></div>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style lang="scss" scoped>
.center li {
  transition: 1s;
}
.center .titi {
  display: flex;
  justify-content: space-between;
}
.center .titi h4 {
  display: block;
  font-size: 30px;
  margin-block-start: 1em;
  margin-block-end: 1em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  font-weight: bold;
}
.center .titi a {
  font-size: 20px;
  padding: 2px 20px;
  display: block;
  text-align: center;
  line-height: 50px;
  background-color: #ebebeb;
  border-radius: 30px;
  margin: 20px 0;
  
}
.center .titi a:hover {
  background-color: #ff6c6b;
  color: #fff;
}
.top .yuan {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 144px;
  height: 144px;
  margin-left: -72px;
  margin-top: -72px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
}
.top .yuan span:nth-child(2) {
  width: 70px;
  height: 1px;
  background: #fff;
  margin: 10px auto;
}
.top .yuan span:nth-child(1) {
  font-size: 24px;
}
.center li .jiantou {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -24px;
  margin: auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ff6e6e url(../../public/jiantou.png) no-repeat 50%/16px;
}

.gongzuo .txt span:nth-child(1) {
  font-weight: 700;
  font-size: 12px;
}
.gongzuo .txt span:nth-child(2) {
  font-size: 12px;
  color: #333333;
}
.center p {
  display: flex;
  color: grey;
  margin: 10px auto 8px;
  margin-left: 7px;
}
// .top1 div:after{
//   content: "";
//     position: absolute;
//     top: 12px;
//     right: 6px;
//     height: 26px;
//     width: 0;
//     border-left: 1px solid #ccc;
// }
.center ul li {
  position: relative;
  width: 280px;
  background: #fff;
  box-shadow: 0 0 20px 0 hsl(0deg 0% 70% / 30%);
  border-radius: 10px;
}
.container .center li:hover {
  // margin-top: -2px;
  transform: scale(1.1, 1.1);
  user-select: none;
}
.center li:hover .jiantou {
  display: block;
}
.top {
  width: 280px;
  height: 230px;
  background-image: url(../../public/wuliu1.png);
  border-radius: 10px 10px 0 0;

  position: relative;
}
.top {
  width: 280px;
  height: 230px;
  background-image: url(../../public/wuliu2.png);
  border-radius: 10px 10px 0 0;

  position: relative;
}
.top {
  width: 280px;
  height: 230px;
  background-image: url(../../public/wuliu3.png);
  border-radius: 10px 10px 0 0;

  position: relative;
}
.center {
  width: 1200px;
  margin: 0 auto;
}
.container {
  background-color: #fafafa;
}
.center ul {
  display: flex;
  justify-content: space-between;
  padding-bottom: 70px;
}
li .gongzuo div {
  width: 84px;
  position: relative;
  > span {
    display: block;
    line-height: 26px;
    width: 75px;
  }
}

li .gongzuo div:nth-child(1) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
li .gongzuo div:nth-child(2) {
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
}

li .gongzuo {
  text-align: center;
  padding: 0 10px;
  display: flex;
  justify-content: space-between;

  margin-bottom: 38px;
}
h3 {
  font-size: 22px;
  line-height: 42px;
  margin-left: 7px;
}
h3:after {
  content: "";
  display: block;
  height: 0;
  width: 42px;
  border-top: 4px solid #ff6e6e;
}
</style>